package pl.edu.pjwstk.kor.model;

import java.io.Serializable;

public class Deal implements Serializable {
	private static final long serialVersionUID = 1L;
	
	private Employee employee;
	private Customer customer;
	private Service service;
	
	private Double cost;
	private CustomDate dealDate;
	
	public Employee getEmployee() {
		return employee;
	}
	
	public void setEmployee(Employee employee) {
		this.employee = employee;
	}
	
	public Customer getCustomer() {
		return customer;
	}
	
	public void setCustomer(Customer customer) {
		this.customer = customer;
	}
	
	public Service getService() {
		return service;
	}
	
	public void setService(Service service) {
		this.service = service;
	}
	
	public Double getCost() {
		return cost;
	}
	
	public void setCost(Double cost) {
		this.cost = cost;
	}
	
	public CustomDate getDealDate() {
		return dealDate;
	}

	public void setDealDate(CustomDate dealDate) {
		this.dealDate = dealDate;
	}

	@Override
	public String toString() {
		return "Deal [employee=" + employee.getFirstName() + " " + employee.getLastName() + ", customer=" + customer
				+ ", service=" + service.getServiceName() + ", cost=" + cost + ", dealDate="
				+ dealDate + "]";
	}
}
